package com.binfast.service.dao.auth;

import com.binfast.bean.model.auth.AdminMenu;
import com.binfast.bean.model.auth.AdminUser;
import com.binfast.seed.config.BaseDao;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

@SqlResource("auth.adminUser")
public interface AdminUserDao extends BaseDao<AdminUser> {

    List<AdminUser> sample();

    PageQuery<AdminUser> findListPage(PageQuery pageQuery);

    AdminUser findByUserNameAndPasswordAndDeleted(String username, String password);

    List<AdminMenu> findMenusByUser(Long userId);

}
